/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package chat;

/**
 *
 * @author salm
 */
public class TextChatMessage extends BaseChatMessage
{
    private String content;
    
    public TextChatMessage(String sender, String receiver, String msgContent)
    {
        super (sender, receiver);
        this.content = msgContent;
    }
    
    @Override
    public int getMessageType() {
        return ChatMessage.CHATMESSAGE_TYPE_TEXT;
    }
    
    public String getMessageContent()
    {
        return this.content;
    }
    
    @Override
    public String toString()
    {
        return String.format("%s: %s", this.getSenderID(), this.content);
    }
}
